<p> Name: <%= @questionnaire.name %>                                    </p>
<p> Maximum time: <%= pluralize(@max_hours, 'hour') +' '+ pluralize(@max_minutes, 'minute') %> </p>
<p> Wrong answer penalty: <%= if @questionnaire.wrong_answer_penalty == -1 then "Statistical penalty" else @questionnaire.wrong_answer_penalty end %>    </p>
<p> No answer penalty: <%= @questionnaire.no_answer_penalty %>          </p>
<p> Created at: <%= @questionnaire.created_at.to_formatted_s(:short) %> </p>
<p> Created by: <%= @questionnaire.user.login %>                        </p>
<label for="select_questions">Questions:</label>
<%= collection_multiple_select :questionnaire, :question_ids, @questionnaire.questions, :id, :wording,
      {:outer_class => 'multiple_select', :inner_class => 'multiple_select_checkbox', :disabled => true} %>  

<div id=categories>
  <h2> Categories: </h2>
  <ul>
  <% for category in @questionnaire_categories %>
    <li>  <%= category.name %> </li>
  <% end %>
  </ul>
</div>

<div id=links_section>
  <%= link_to 'Take questionnaire', take_questionnaire_path %>
  <%= link_to 'Edit questionnaire', edit_questionnaire_path %>
  <%= link_to 'Remove questionnaire', questionnaire_path, :confirm => 'Are you sure?', :method => :delete %>
  <%= link_to 'Back to \'List of Questionnaires\'', questionnaires_path %>
</div>